const { WinexAuthorizationGenerator } = require("../../src/dataGeneration");

const loginUrl = "https://127.0.0.1:17418/base/unauth/api/v2/base/user/confusion_login";
const adminLoginData = {
    "username": "OgGBjZ7K02xfP/1ITwxyPw==",
    "password": "QZC2Kbh5+upCdBnnCfrriA==",
    "currentOrgId": "994504",
    "orgName": "天津医科大学朱宪彝纪念医院",
    "hospitalSOID": "994504",
    "locationId": "",
    "locationName": "",
    "ipAddress": "127.0.0.1",
    "macAddress": "",
    "equipmentName": "",
    "appSystemId": "153614388663152641",
    "mfaCode": ""
};

const hisLoginData = {
    "username": "OgGBjZ7K02xfP/1ITwxyPw==",
    "password": "QZC2Kbh5+upCdBnnCfrriA==",
    "currentOrgId": "994504",
    "orgName": "天津医科大学朱宪彝纪念医院",
    "hospitalSOID": "994504",
    "locationId": "",
    "locationName": "",
    "ipAddress": "127.0.0.1",
    "macAddress": "",
    "equipmentName": "",
    "appSystemId": "153614388663152641",
    "mfaCode": ""
};

const outpatientDoctorLoginData = {
    "username": "OgGBjZ7K02xfP/1ITwxyPw==",
    "password": "QZC2Kbh5+upCdBnnCfrriA==",
    "currentOrgId": "994504",
    "orgName": "天津医科大学朱宪彝纪念医院",
    "hospitalSOID": "994504",
    "locationId": "",
    "locationName": "",
    "ipAddress": "127.0.0.1",
    "macAddress": "",
    "equipmentName": "",
    "appSystemId": "153614388663152641",
    "mfaCode": ""
};

const inpatientNurseLoginData = {
    "username": "OgGBjZ7K02xfP/1ITwxyPw==",
    "password": "QZC2Kbh5+upCdBnnCfrriA==",
    "currentOrgId": "994504",
    "orgName": "天津医科大学朱宪彝纪念医院",
    "hospitalSOID": "994504",
    "locationId": "",
    "locationName": "",
    "ipAddress": "127.0.0.1",
    "macAddress": "",
    "equipmentName": "",
    "appSystemId": "153614388663152641",
    "mfaCode": ""
};

const inpatientDoctorLoginData = {
    "username": "OgGBjZ7K02xfP/1ITwxyPw==",
    "password": "QZC2Kbh5+upCdBnnCfrriA==",
    "currentOrgId": "994504",
    "orgName": "天津医科大学朱宪彝纪念医院",
    "hospitalSOID": "994504",
    "locationId": "",
    "locationName": "",
    "ipAddress": "127.0.0.1",
    "macAddress": "",
    "equipmentName": "",
    "appSystemId": "153614388663152641",
    "mfaCode": ""
};


const winexAuthorizationGenerator = new WinexAuthorizationGenerator();
winexAuthorizationGenerator.generate(loginUrl, adminLoginData, "adminAuthorizations", 50);
winexAuthorizationGenerator.generate(loginUrl, hisLoginData, "hisAuthorizations", 50);
winexAuthorizationGenerator.generate(loginUrl, outpatientDoctorLoginData, "outpatientDoctorAuthorizations", 50);
winexAuthorizationGenerator.generate(loginUrl, inpatientNurseLoginData, "inpatientNurseAuthorizations", 50);
winexAuthorizationGenerator.generate(loginUrl, inpatientDoctorLoginData, "inpatientDoctorAuthorizations", 50);
